//
//  KKMacrosSwift.swift
//  MVVMSwfit
//
//  Created by CarShare on 2018/12/10.
//  Copyright © 2018年 CarShare. All rights reserved.
//

import UIKit

class KKMacros: NSObject {

    public let kScreenBounds : CGRect = UIScreen.main.bounds

    public let kScreenWidth : CGFloat = UIScreen.main.bounds.width
    
    public let kScreenHeight : CGFloat = UIScreen.main.bounds.height
    
    public let isIphoneXSerial : Bool = UIDevice.current.name.contains("iPhone X")
    
    public let kStatusBarHeight : CGFloat = UIApplication.shared.statusBarFrame.height
    
    public let kNaviBarHeight : CGFloat = UIApplication.shared.statusBarFrame.height + 44
    
    public let kTabBarHeight : CGFloat = {
        let isXSerial = UIDevice.current.name.contains("iPhone X")
        var height:CGFloat = 44.0
        if isXSerial {
            height = 44.0 + 34
        }
        return height
    }()
}
